package com.bestcem.xm.ticket.service.dto.mq.member;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 联系人足记 MQ 发送数据
 *
 * @author XiaoYunSong <ys.xiao@idiaoyan.com>
 * @version v1.0
 * @date 2021/8/26 13:37
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class FootprintSaveDTO {

    /**
     * ticket.orgId
     */
    @JsonProperty("org_id")
    private String orgId;

    /**
     * ticket.member_id
     */
    @JsonProperty("member_id")
    private String memberId;

    /**
     * type
     *
     * @see com.bestcem.xm.ticket.enums.MemberFootprintTypeEnum
     */
    @JsonProperty("type")
    private Integer type;

    /**
     * ticket.id
     */
    @JsonProperty("source_key")
    private String sourceKey;

    /**
     * content
     */
    @JsonProperty("content")
    private Content content;

    /**
     * ticket.createdDT
     */
    @JsonProperty("footprint_time")
    private Date footprintTime;


    @NoArgsConstructor
    @AllArgsConstructor
    @Data
    public static class Content {

        /**
         * ticketconfig.title
         */
        @JsonProperty("title")
        private String title;

        /**
         * ticket.surveyTitle
         */
        @JsonProperty("project_name")
        private String surveyTitle;

        /**
         * ticket.status
         */
        @JsonProperty("ticket_status")
        private Integer status;

        /**
         * ticket.updatedDT
         */
        @JsonProperty("update_ticket_status_time")
        private Date updatedDate;


    }
}
